package org.yunmai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 小灰灰
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
@Tag(name="用户实体类")
public class SysUserEntity {

    @TableId(type= IdType.AUTO,value = "id")
    @Schema(name="主键")
    private Integer id;

    @Schema(name = "用户名",required = true,example = "1")
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("email")
    private String email;
    @TableField("realname")
    private String realname;
    @TableField("phone")
    private String phone;
    @TableField("address")
    private String address;
    @TableField("dept_id")
    private Integer deptId;
}
